import axios from "axios";

//开启kdc,加密机服务-接口 

const request = {
    login: (data) => {
		return axios({
           // headers:{'Content-type':'multipart/form-data'},
			method:'post',
			url: '/api/api/kdc_login/login/',
			data
		})
	},
    starServe(params) {
        console.log(params);
        return axios({
            url: '/api/api/kdc_sers/kdc_sers/',
            params: params
        })
    },
    init: (params) => {
        return axios({
            url: '/api/api/kdc_inis/kdc_inis/',
			params
        })
    },
    center: (params) => {
        return axios({
            url: '/api/api/kdc_center/kdc_center/',
            params
        })
    },
    send: (params) => {
        return axios({
            url: '/api/api/kdc_send/kdc_send/',
            params
        })
    },
    show: (params) => {
        return axios({
            url: '/api/api/kdc_query/kdc_query/',
            params
        })
    },
    setPassword: (data) => {
		return axios({
			method:'post',
			url:'/api/api/kdc_pwd/pwd/',
			data
		})
	},
    getNetwork:(params) => {
		return axios({
			url: '/api/api/kdc_look_network/look_network/',
            params
		})
	},
    updateNetwork: (data) => {
		return axios({
			method:'post',
			url:'/api/api/kdc_sets_network/sets_network/',
			data
		})
	},
    memory:(params) => {
		return axios({
			url: '/api/api/kdc_memory/memory/',
            params
		})
	},
    cpu:(params) => {
		return axios({
			url: '/api/api/kdc_cpu/cpu/',
            params
		})
	},
    has_network:( params) => {
		return axios({
			url: '/api/api/kdc_has_network/has_network/',
            params
		})
	},
    user_view:(params) => {
		return axios({
			url: '/api/api/kdc_view/user_view/',
			params
		})
	},
    getLogs:(params) => {
		return axios({
			url: '/api/api/kdc_loggers/user_loggers/',
			params
		})
	},
    kdcDelete:(params) => {
		return axios({
			url: '/api/api/kdc_delete/delete/',
			params
		})
	},
    tik:() => {
		return axios({
			url: '/api/api/kdc_tik/tik/',
		})
	},

}

export default request